﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.CRL.DataContract;
using Empires.BLL.Core.IService;
using Empires.BLL.Core.Implement;

namespace Empires.PL.ServiceClient
{
    public static class CompanyBusinessServiceClient
    {
        public static List<DefaultDataPack> GetUtilsDetails(string copName,int type)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            return service.GetUtilsDetails(copName, type);
        }

        public static List<DefaultDataPack> GetBusinessDetail(string copname, int bid)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            return service.GetBusinessDetail(copname, bid);
        }
        public static List<DefaultDataPack> GetBusinessList(string copname, int page, int size, int type, int subject)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            return service.GetBusinessList(copname, page, size, type, subject);
        }

        public static int BusinessItemDelete(string copname, int bid)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            return service.BusinessItemDelete(copname, bid);
        }

        public static int AddBusinessItem(string copname, BusinessDataPack businessDataPack)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            return service.AddBusinessItem(copname, businessDataPack);
        }

        public static bool EditBusinessItem(string copname, BusinessDataPack businessDataPack)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            return service.EditBusinessItem(copname, businessDataPack);
        }
        public static void UpdateBusiness(string copname, BusinessDataPack businessDataPack)
        {
            ICompanyBusinessService service = new CompanyBusinessService();
            service.UpdateBusiness(copname, businessDataPack);
        }
    }
}
